package com.github.niefy.modules.wx.entity.common;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CommonQuery<T> {

    /**
     * 当前一页展示多少条
     */
    private long size;
    /**
     * 当前第几页
     */
    private long current;

    private T query;

    public Page<T> toPage() {
        Page<T> page = new Page<>(current, size);
        return page;
    }
}
